home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 15
/
Aminet 15 - Nov 1996.iso
/
Aminet
/
dev
/
gcc
/
ixemsdk.lha
/
man
/
cat3
/
uname.0
< prev
next >
Wrap
Text File
|
1996-09-02
|
2KB
|
48 lines
UNAME(3) UNIX Programmer's Manual UNAME(3)
NNAAMMEE
uunnaammee - get system identification
SSYYNNOOPPSSIISS
##iinncclluuddee <<ssyyss//uuttssnnaammee..hh>>
_i_n_t
uunnaammee(_s_t_r_u_c_t _u_t_s_n_a_m_e _*_n_a_m_e)
DDEESSCCRRIIPPTTIIOONN
The uunnaammee() function stores nul-terminated strings of information identi-
fying the current system into the structure referenced by _n_a_m_e.
The utsname structure is defined in the <sys/utsname.h> header file, and
contains the following members:
sysname Name of the operating system implementation.
nodename Network name of this machine.
release Release level of the operating system.
version Version level of the operating system.
machine Machine hardware platform.
RREETTUURRNN VVAALLUUEESS
If uunnaammee is successful, 0 is returned, otherwise, -1 is returned and
_e_r_r_n_o is set appropriately.
EERRRROORRSS
The uunnaammee() function may fail and set _e_r_r_n_o for any of the errors speci-
fied for the library functions sysctl(3).
SSEEEE AALLSSOO
uname(1), sysctl(3)
SSTTAANNDDAARRDDSS
The uunnaammee() function conforms to IEEE Std1003.1-1988 (``POSIX'').
HHIISSTTOORRYY
The uunnaammee function first appeared in 4.4BSD.
BSD Experimental September 2, 1996 1